<%-- 
    Document   : login
    Created on : Feb 23, 2011, 9:29:38 AM
    Author     : NGUYENVANHUNG
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
    </head>
    <body>
        <form action="../adminLoginServlet" method="post">
            <h1 align="center">Admin Login!</h1>
            <table align="center" border="0" bgcolor="gray">
                <tr>
                    <td width="30">Username:</td>
                    <td>
                        <input type="text" size="30" name="txtUsername">
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <input type="password" size="30" name="txtPassword">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" size="30" name="btnSubmit" value="Login">
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="checkbox" name="cbRemember" value="Remember">Remember
                        <br>
                        <%
                            if(session.getAttribute("adminLoginStatus") != null){
                                out.print("<font color='red'>"+ session.getAttribute("adminLoginStatus")+"</font>");
                            }
                        %>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <a href="getPassword.jsp">Forgot Password</a>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
